﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuaHan.WorkTicket.Domain
{
    [Table("tblGroup")]
    public partial class Group : BaseEntity
    {
        public Group()
        {
            this.GroupRole = new HashSet<GroupRole>();
        }

        [Key]
        public System.Guid GroupID { get; set; }

        [Required]
        [MaxLength(20)]
        public string Name { get; set; }

        [MaxLength(100)]
        public string Description { get; set; }

        public virtual ICollection<GroupRole> GroupRole { get; set; }
    }
}
